$(function() {
//  $(".input").css({"left":(window.innerWidth - 160)/2+'px'});
  setTimeout(function() {
      $(".comment").css({"transform":""});
      $(".ok").css({"transform":""});
  },2000)
//  scaleW=window.innerWidth/320;
//  scaleH=window.innerHeight/480;
//  var resizes = document.querySelectorAll('.resize');
//  for (var j=0; j<resizes.length; j++) {
//     resizes[j].style.width=parseInt(resizes[j].style.width)*scaleW+'px';
//     resizes[j].style.height=parseInt(resizes[j].style.height)*scaleH+'px';
//     resizes[j].style.top=parseInt(resizes[j].style.top)*scaleH+'px';
//     resizes[j].style.left=parseInt(resizes[j].style.left)*scaleW+'px';
//  }
//  var scales = document.querySelectorAll('.txt');
//  for (var i=0; i<scales.length; i++) {
//    ss=scales[i].style;
//    ss.webkitTransform = ss.MsTransform = ss.msTransform = ss.MozTransform = ss.OTransform =ss.transform='translateX('+scales[i].offsetWidth*(scaleW-1)/2+'px) translateY('+scales[i].offsetHeight*(scaleH-1)/2+'px)scaleX('+scaleW+') scaleY('+scaleH+') ';
//  }
//  var input = document.querySelectorAll('.input');

  var mySwiper = new Swiper ('.swiper-container', {
    direction : 'vertical',
    pagination: '.swiper-pagination',
    parallax: true,
    speed: 500,
    onInit: function(swiper){
      swiperAnimateCache(swiper);
      swiperAnimate(swiper);
    },
    onSlideChangeEnd: function(swiper){
      swiperAnimate(swiper);
    }
  })
  window.onload = function() {
      $(".swiper-wrapper").css({"opacity":1})
      $(".parallax-bg").css({"opacity":1})
      $(".loading").hide();
  };
});
